package com.elong.businesstravel.protocol.version;

import java.io.UnsupportedEncodingException;
import java.net.URLEncoder;

import org.apache.http.Header;
import org.apache.http.HttpEntity;
import org.apache.http.entity.StringEntity;

import android.content.Context;

import com.android.support.jhf.network.BaseHttpRequest;
import com.android.support.jhf.network.loopj.android.http.RequestParams;
import com.elong.businesstravel.base.mcrypt.MCrypt;
import com.elong.businesstravel.protocol.ProtocolDef;
import com.elong.businesstravel.protocol.baserequest.BaseELongHttpRequest;

/**
 * 版本号
 * 
 * @author lenovo
 * 
 */
public class GetVersionRequest extends BaseELongHttpRequest {
	
//	private String requestParamString;

	public GetVersionRequest(Context context) {
		super(context);
		
//		MCrypt mCrypt = new MCrypt();
//		try {
//			StringBuilder stringBuilder = new StringBuilder();
//			stringBuilder.append("action="+  URLEncoder.encode(ProtocolDef.ACTION_Getversion, getEncoding()));
//			stringBuilder.append("&");
//			stringBuilder.append("req="+  URLEncoder.encode(
//					"{\"version\":\"1.0\",\"uid\":\"16\"}"));
//			requestParamString = MCrypt.bytesToHex(mCrypt.encrypt(stringBuilder.toString()));
//			
//		} catch (Exception e) {
//			e.printStackTrace();
//		}
	}

//	@Override
//	public HttpEntity getRequestEntity() {
//		
//		HttpEntity httpEntity = null;
//		try {
//			httpEntity = new StringEntity(requestParamString);
//		} catch (UnsupportedEncodingException e) {
//			e.printStackTrace();
//		}
//		
//		return httpEntity;
//	}


}
